Component org.nuxeo.drive.versioning
In bundle org.nuxeo.drive.core
Requirements
Resolution Order
196
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime
framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.
Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.drive.versioning" version="1.0">
<require>org.nuxeo.ecm.core.versioning.default-policies</require>
<extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="policies">
<policy id="versioning-delay" increment="MINOR" beforeUpdate="true" order="150">
<filter-id>versioning-delay</filter-id>
<filter-id>drive-filter</filter-id>
<filter-id>not-folderish</filter-id>
</policy>
</extension>
<extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="filters">
<filter id="versioning-delay">
<condition>#{currentDocument.dc.modified.time - previousDocument.dc.modified.time >= 3600000}</condition>
</filter>
<filter id="drive-filter">
<condition>#{currentDocument.contextData.source == "drive"}</condition>
</filter>
<filter id="not-drive-filter">
<condition>#{currentDocument.contextData.source != "drive"}</condition>
</filter>
<filter id="not-folderish">
<condition>#{!currentDocument.folder}</condition>
</filter>
</extension>
</component>